body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 2rem auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: #fff;
}

header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  margin-right: 1rem;
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.title {
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.image-container {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #000;
  border-radius: 0 0 16px 16px;
}

.image-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.image-container img.active {
  opacity: 1;
}

.caption-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.caption {
  font-size: 1.25rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #fff;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
  max-width: 80%;
  text-align: center;
  font-weight: 500;
}

.sound-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.sound-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.sound-btn svg {
  width: 24px;
  height: 24px;
  color: #4c1d95;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #fff }
}
